ARM: tegra: fix GPIO init table programming
authorStephen Warren <[email protected]>
Wed, 23 Sep 2015 18:12:59 +0000 (12:12 -0600)
committerTom Warren <[email protected]>
Fri, 2 Oct 2015 18:04:34 +0000 (11:04 -0700)
commitf9d3cab091522c8470e9ebd4a8967d00f49efc4a
treecdbced093fcd36fdc7bc33b32b5dfe8fdb440c53
parentcb96bf991be6af65e308600de52f36224a3c3c3f
ARM: tegra: fix GPIO init table programming

Tegra's gpio_config_table() currently uses common GPIO APIs. These used
to work without requesting the GPIO, but since commit 2fccd2d96bad "tegra:
Convert tegra GPIO driver to use driver model" no longer do so. This
prevents any of the GPIO initialization table from being applied to HW.
Fix gpio_config_table() to directly program the HW to solve this.

Fixes: 2fccd2d96bad ("tegra: Convert tegra GPIO driver to use driver model")
Signed-off-by: Stephen Warren <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Signed-off-by: Tom Warren <[email protected]>
drivers/gpio/tegra_gpio.c